<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>

        <table bgcolor="#F8F8FF" style="margin-left:150px;margin-top:30px;" class="fontDinpro">
          <tr width="950px"><td colspan="5" align="left" width="850px" bgcolor="#FFFFFF"><img border="0" src="img/android.png"></img></td></tr> 
            <tr style="height:20px"></tr>
            <?php foreach($list as $v) :
                   		//$className;
                        switch($os[$v['os']]){
                            case "android":
                            	if(isset($params[$v['chcode']])){
									static $num_1=0;
									if ($num_1 > 1 && $num_1%5 == 4)
										{	echo '<td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td></tr><tr style='height:10px'></tr>";
											$num_1++;
											
										}
    								elseif($num_1%5 == 0)
										{	 echo '<tr class="lowTr"><td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td>"; 
											$num_1++;
										}   
									else{
												echo '<td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td>";
												$num_1++;
										}
								break;
									}			
						}         
				?>
                
            <?php endforeach; ?>
            <tr style="height:20px"></tr>   
</table>
           	<br><br><br>
<table bgcolor="#F8F8FF" style="margin-left:150px;" class="fontDinpro" >
         <tr><td colspan="5" align="left" width="850px" bgcolor="#FFFFFF"><img src="img/ios.png"></img></td></tr> 
         <tr style="height:20px"></tr>   
            <?php foreach($list as $v) :
                   		//$className;
                        switch($os[$v['os']]){
                            case "ios":
                            	if(isset($params[$v['chcode']])){
									static $num_2=0;
									if ($num_2 > 1 && $num_2%5 == 4)
										{	echo '<td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td></tr><tr style='height:10px'></tr>";
											$num_2++;
											
										}
    								elseif($num_2%5 == 0)
										{	 echo '<tr class="lowTr"><td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td>"; 
											$num_2++;
										}   
									else{
												echo '<td style="width:160px;padding-left:10px"><span><img style="width:50px;height:50px" src="img/alliance/'.$v['chcode'].'.jpg"></img> </span>'.$v['cname']."</td>";
												$num_2++;
										}
								break;
									}			
						}         
				?>
                
            <?php endforeach; ?>
            <tr style="height:20px"></tr>   
        </table>
    </div>
    <!--  <div class="changePage"><?php //echo $pagination;?></div>-->
</div>
